package com.letoy.edu.vo;

import com.letoy.edu.entity.LessonInfo;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
public class LessonTimeInfo {

    private long lessonId;
    private long studentId;
    private long majorId;
    private long teacherId;
    private String name;
    private long type;
    private String classroom;
    private long startWeek;
    private long endWeek;
    private long startClass;
    private long endClass;
    private long day;

    private String startTime;
    private String endTime;


    public LessonTimeInfo(LessonInfo lessonInfo, String startTime, String endTime) {
        this.lessonId = lessonInfo.getLessonId();
        this.studentId = lessonInfo.getStudentId();
        this.majorId = lessonInfo.getMajorId();
        this.teacherId = lessonInfo.getTeacherId();
        this.name = lessonInfo.getName();
        this.type = lessonInfo.getType();
        this.classroom = lessonInfo.getClassroom();
        this.startWeek = lessonInfo.getStartWeek();
        this.endWeek = lessonInfo.getEndWeek();
        this.startClass = lessonInfo.getStartClass();
        this.endClass = lessonInfo.getEndClass();
        this.day = lessonInfo.getDay();
        this.startTime = startTime;
        this.endTime = endTime;
    }
}
